x
detect(uniqueId: string, callback: (detached: Detached) => void ): void; op.detect( uniqueKey, detached => { if (!detached) { driveIndex++; loadNextOptional(); if (detached.timestamp > domTimestamp) { detached.apply(dom, loadedDrive => { this._mirror = loadedDrive; loaded(); }); } else { detached.purge(loadedDrive => { this._mirror = loadedDrive; loaded(); }); } } }); }; loadNextOptional(); } files(): string[] { return this._dom.files(); }​ read(file: string): string { return this._dom.read(file); }​ write(file: string, content: string) { this._dom.write(file, content); if (this._mirror) this._mirror.write(file, content); } } export module Drive { export interface Mirror { write(file: string, content: string); } export interface Optional {